package cn.lyf.service;

import cn.lyf.entity.Blog;
import cn.lyf.entity.BlogType;
import cn.lyf.entity.Body;

import java.util.List;
import java.util.Map;

public interface BlogService {
    public void add(Body body, Blog blog);

    public List<Blog> findBlogsByTypeId(String typeid);

    public Map<String,Object> findOneBlog(String blogid);

    public List<Blog> findBlogsByTitle(String title);

    public void addReadnum(String blogid);

    public int addLike(String blogid,String userid);
}
